package com.site.blog.my.core.dao;

import com.site.blog.my.core.entity.AdminUser;
import org.apache.ibatis.annotations.Param;

public interface AdminUserMapper {


    /**
     * 登录
     *
     * @param userName
     * @param password
     * @return
     */
    //登录方法
    AdminUser login(@Param("userName") String userName, @Param("password") String password);
    //根据id来查找登录的用户
    AdminUser selectByPrimaryKey(Integer adminUserId);

    int updateByPrimaryKeySelective(AdminUser record);

    int updateByPrimaryKey(AdminUser record);

    int insert(AdminUser record);

    int insertSelective(AdminUser record);

}